package com.example.bankend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bankend.entity.Card;
import com.example.bankend.entity.User;

import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigInteger;
import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/17 19:41
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    public User selectByPID(@Param("PID") String PID);
    public void insertUser(User user);
    public List<Long> selectAllCustomerID();
    public User selectByCunstomerID(@Param("cunstomerID") Long customerID);
    public User selectByTelephone(@Param("telephone") String telephone);
    public void deleteUser(@Param("customerID") Long customerID);
    public User selectAdmin();
    public List<User> selectLikeByName(String customerName);
    void recoverUserByID(Long customerID);
    List<String> getCardIDByCustomerID(Long customerID);
    List<User> selectAll();
    List<Card> getAllCardByID(Long customerID);
    void updateUserbase(String telephone, Long customerID, String pass, String address);

}
